package de.baumann.browser.views.dialog

import android.content.Context
import de.baumann.browser.R
import kotlinx.android.synthetic.main.dialog_create_pool_success.*

/**
 *@author:
 *@date:2019/7/10 16:52
 *@discription: 矿池创建成功
 */
class CreatePoolSuccessDialog(context: Context) : BaseTipDialog(context) {
    override fun initView() {
        super.initView()
        setCancelable(false)
        setCanceledOnTouchOutside(false)
        getButton().setOnClickListener {
            dismiss()
        }
    }

    override fun getTitle(): String {
        return context.getString(R.string.congratulations)
    }

    override fun getTipContent(): String {
        return context.getString(R.string.Successful_application)
    }

    override fun getTipSubContent(): String {
        return context.getString(R.string.explanation)
    }

    override fun getTipButtonText(): String {
        return context.getString(R.string.app_ok)
    }

}